package com.zengqingfa.demo.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author zengqingfa
 * @date 2019/11/22 14:42
 * @description
 * @email zengqingfa_java@163.com
 */
public class MyFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("================进入过滤器MyFilter======================");
        filterChain.doFilter(servletRequest, servletResponse);
    }

    @Override
    public void destroy() {

    }
}
